<?php
class ContactoController extends Zend_Controller_Action
{
    function indexAction()
    {
        $this->view->titulo = "Contactanos";
    }

    /*function enviarAction()
    {
        $this->_helper->viewRenderer->setNoRender();
        $this->_helper->layout->disableLayout();
        $formulario = $this->_request->getParams();
            $body = "<table>";
            $body .="<tr><th>Nombre</th><td>".$formulario['nombre']."</td></tr>";
            $body .="<tr><th>Fono</th><td>".$formulario['fono']."</td></tr>";
            $body .="<tr><th>Correo</th><td>".$formulario['correo']."</td></tr>";
            $body .="<tr><th>Comentario</th><td>".$formulario['comentario']."</td></tr>";
            $body .="</table>";

            $transport = new Zend_Mail_Transport_Sendmail('contacto@artesaniasmorelly.cl');
                Zend_Mail::setDefaultTransport($transport);
            $mail = new Zend_Mail();
            $mail->setSubject('Contacto Artesanias Morelly');
            $mail->setFrom('artesaniasmorelly.cl', 'www.artesaniasmorelly.cl' );
            $mail->addTo( 'artesaniasmorelly.cl', 'www.artesaniasmorelly.cl' );
            $mail->addCc($formulario['correo'], $formulario['nombre']);           
            $mail->addBcc( 'aucanwincaman@hotmail.com', 'Pablo Sandoval' );
            $mail->addBcc( 'morelly_1961@hotmail.com', 'Elsa Moreno' );
            $mail->addBcc( 'psandovaltec@gmail.com', 'Pablo Sandoval' );
            $mail->setBodyHtml( $body );
            $mail->send();

        $this->_redirect('contacto/enviado');
    }*/

    function enviadoAction()
    {
        $this->view->titulo = "Contacto enviado";
    }
}
